package com.zhu.transaction.mapper.imp;

import com.zhu.transaction.mapper.SchoolMapper;
import com.zhu.transaction.pojo.SchoolDetail;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author byosoft
 * @createtime 2021/3/13-14:45
 */
@Repository
public class SchoolMapperImp implements SchoolMapper {
    @Autowired
    SqlSession sqlSession;

    @Override
    public List<SchoolDetail> queryAllSchool() {
        return sqlSession.getMapper(SchoolMapper.class).queryAllSchool();
    }
}
